
const CanvasDesignerMixin = {
  data() {
    return {
      zoomValue: 1, //  缩放比例
    }
  },
  created () {


  },
  methods: {
    zoomIn (domId) {
      this.zoomValue += 0.2;
      $('#' + domId).css('zoom', this.zoomValue);
    },

    zoomOut (domId) {
      this.zoomValue -= 0.2;
      $('#' + domId).css('zoom', this.zoomValue);
    },

    zoomReset (domId) {
      this.zoomValue = 1;
      $('#' + domId).css('zoom', this.zoomValue);
    }
  },
  computed: {

  }
};

export default CanvasDesignerMixin
